<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <link rel="stylesheet" href="assets/mui/css/mui.min.css">
    <!--引入css-->
    <link rel="stylesheet" href="css/base.css"/>
    <link rel="stylesheet" href="css/address.css"/>
    <!--引入字体图标-->
    <link rel="stylesheet" href="assets/fontAwesome/css/font-awesome.min.css"/>
    <script src="assets/mui/js/mui.min.js"></script>
    <!--引入zepto.js-->
    <script src="js/zepto.min.js"></script>
    <!--引入template模板-->
    <script src="js/template-web.js"></script>
    <!--引入公共js-->
    <script src="js/public.js"></script>
    <!--引入js-->
    <script src="js/address.js"></script>
</head>
<body>
<header class="mui-bar mui-bar-nav my-header">
    <a href="user.html" class="mui-icon mui-icon-back"></a>
    <h1 class="mui-title">收货地址管理</h1>
    <a class="mui-icon mui-icon-search mui-pull-right" href="search.html"></a>
</header>
<nav class="mui-bar mui-bar-tab my-footer">
    <a class="mui-tab-item" href="index.html">
        <span class="mui-icon mui-icon-home"></span>
        <span class="mui-tab-label">首页</span>
    </a>
    <a class="mui-tab-item" href="category.html">
        <span class="mui-icon mui-icon-bars"></span>
        <span class="mui-tab-label">分类</span>
    </a>
    <a class="mui-tab-item" href="cart.html">
        <span class="fa fa-shopping-cart"></span>
        <span class="mui-tab-label">购物车</span>
    </a>
    <a class="mui-tab-item mui-active" href="user.html">
        <span class="mui-icon mui-icon-person"></span>
        <span class="mui-tab-label">会员中心</span>
    </a>
</nav>

<!--引用模板-->
<script type="text/html" id="address">
   {{each item}}
      <li class="mui-table-view-cell mui-media">
          <div class="mui-slider-right mui-disabled">
              <span class="mui-btn mui-btn-blue edit" data-id="{{$value.id}}">编辑</span>
              <a href="javaScript:;" data-id="{{$value.id}}" class="mui-btn mui-btn-red delete">删除</a>
          </div>
          <div class="mui-media-body mui-slider-handle">
              邮编: {{$value.postCode}} 收货人:{{$value.recipients}}
              <p class='mui-ellipsis'>{{$value.address + ' ' + $value.addressDetail}}</p>
          </div>
      </li>
   {{/each}}
</script>

<div class="mui-content">
    <ul class="mui-table-view">
        <li class="mui-table-view-cell center"><a href="addAddress.html?isEdit=0">添加收货地址</a></li>
    </ul>
    <ul class="mui-table-view" id="addressul">
        <!--<li class="mui-table-view-cell mui-media">-->
           <!--<a href="javascript:;">-->
              <!--<div class="mui-media-body">-->
                <!--邮编: 100010 收货人: 孙悟空-->
                 <!--<p class='mui-ellipsis'>北京市北京市东城区黑马程序员顺义校区</p>-->
              <!--</div>-->
           <!--</a>-->
        <!--</li>-->
        <!--<li class="mui-table-view-cell mui-media">-->
            <!--<a href="javascript:;">-->
                <!--<div class="mui-media-body">-->
                    <!--邮编: 100020 收货人: 猪八戒-->
                    <!--<p class='mui-ellipsis'>天津市天津市河西区黑马程序员</p>-->
                <!--</div>-->
            <!--</a>-->
        <!--</li>-->
    </ul>
</div>
</body>
</html>